package dync.rtmpc_demo;

import android.app.Application;

import org.anyrtc.rtmpc_hybrid.RTMPCHybird;
import org.webrtc.ContextUtils;

import dync.rtmpc_demo.utils.Constans;

/**
 * Created by liuxiaozhong on 2017-09-11.
 */

public class RTMPC_Application extends Application {

    private static RTMPC_Application rtmpc_application;


    @Override
    public void onCreate() {
        super.onCreate();
        rtmpc_application= this;
        ContextUtils.initialize(getApplicationContext());

        RTMPCHybird.Inst().Init(getApplicationContext());

        RTMPCHybird.Inst().InitEngineWithAnyrtcInfo(Constans.DEVELOPERID, Constans.APPID, Constans.APPKEY, Constans.APPTOKEN);

//        RTMPCHybird.Inst().ConfigServerForPriCloud("192.168.199.219", 9060);

        RTMPCHybird.Inst().ConfigServerForPriCloud("teameeting.anyrtc.io", 9060);

    }

    public  static Application App(){
        return rtmpc_application;
    }

}
